package top.infopub.mgr.cap.service;

import com.github.pagehelper.Page;
import top.infopub.dto.cap.ContractReviewDto;
import top.infopub.generic.GenericService;
import top.infopub.mgr.cap.domain.ContractReviewDomain;
import top.infopub.mgr.cap.jsonvo.ContractReviewJsonVo;
import top.infopub.mgr.cap.vo.ContractReviewVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.cap.ContractReview;
import top.infopub.model.mkt.ProjectAttachment;
import top.infopub.security.vo.AuthorizationVO;

import java.util.List;

public interface ContractReviewService  extends GenericService<ContractReview, String> {
    /**
     * 根据条件查询保证合同列表
     * @param contractReviewVo
     * @return
     * @see
     */
    Page<ContractReviewDomain> selectByDomainWhere(Page<ContractReviewDomain> page, ContractReviewVo contractReviewVo);

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    ContractReviewJsonVo queryDetailById(String id);


    /**
     * 编辑信息
     * @param contractReviewDto
     * @param attachmentList
     * @param submitType
     * @param vo
     * @return
     */
    RspVo edit(ContractReviewDto  contractReviewDto,
               List<ProjectAttachment> attachmentList, Integer submitType, AuthorizationVO vo);

}
